<div class="space-y-4">
    <!-- 社区信息卡片 -->
    <div class="bg-white rounded-lg shadow overflow-hidden">
        <!-- 社区封面图 -->
        <div class="h-20 bg-gradient-to-r from-orange-400 to-orange-500"></div>
        
        <div class="p-4">
            <h2 class="text-lg font-medium mb-2">关于社区</h2>
            <p class="text-sm text-gray-500 mb-4">
                欢迎来到我们的社区！这里是一个分享和讨论的地方。
            </p>
            
            <!-- 社区统计 -->
            <div class="flex items-center justify-between mb-4 text-sm">
                <div>
                    <div class="font-medium"><?php echo wp_count_posts()->publish; ?></div>
                    <div class="text-gray-500">帖子</div>
                </div>
                <div>
                    <div class="font-medium"><?php echo wp_count_comments()->total_comments; ?></div>
                    <div class="text-gray-500">评论</div>
                </div>
                <div>
                    <div class="font-medium"><?php echo count_users()['total_users']; ?></div>
                    <div class="text-gray-500">成员</div>
                </div>
            </div>
            
            <!-- 创建帖子按钮 -->
            <button class="w-full px-4 py-2 bg-orange-500 text-white rounded-full text-sm font-medium hover:bg-orange-600">
                创建帖子
            </button>
        </div>
    </div>

    <!-- 社区规则 -->
    <div class="bg-white rounded-lg shadow p-4">
        <h2 class="text-lg font-medium mb-3">社区规则</h2>
        <ul class="text-sm space-y-3">
            <li class="flex items-start gap-2">
                <span class="font-medium">1.</span>
                <span class="text-gray-600">保持友善和尊重</span>
            </li>
            <li class="flex items-start gap-2">
                <span class="font-medium">2.</span>
                <span class="text-gray-600">禁止垃圾广告和恶意营销</span>
            </li>
            <li class="flex items-start gap-2">
                <span class="font-medium">3.</span>
                <span class="text-gray-600">遵守相关法律法规</span>
            </li>
            <li class="flex items-start gap-2">
                <span class="font-medium">4.</span>
                <span class="text-gray-600">标题要清晰准确</span>
            </li>
            <li class="flex items-start gap-2">
                <span class="font-medium">5.</span>
                <span class="text-gray-600">适当使用标签</span>
            </li>
        </ul>
    </div>

    <!-- 版主列表 -->
    <div class="bg-white rounded-lg shadow p-4">
        <h2 class="text-lg font-medium mb-3">版主</h2>
        <div class="space-y-3">
            <?php
            $admins = get_users(array('role' => 'administrator'));
            foreach ($admins as $admin) :
            ?>
            <div class="flex items-center gap-3">
                <?php echo get_avatar($admin->ID, 32, '', '', array('class' => 'rounded-full')); ?>
                <div>
                    <div class="text-sm font-medium">u/<?php echo $admin->display_name; ?></div>
                    <div class="text-xs text-gray-500">管理员</div>
                </div>
            </div>
            <?php endforeach; ?>
        </div>
    </div>

    <?php if (is_active_sidebar('sidebar-1')) : ?>
        <?php dynamic_sidebar('sidebar-1'); ?>
    <?php endif; ?>
</div> 